package com.example.springdemotest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

    @GetMapping("/")
    public String hello(){
        return "hello";
    }


    @GetMapping("/login")
    public String login(@RequestParam String username,@RequestParam String password){
        System.out.println(username);
        System.out.println(password);
        return "login success";
    }

}
